package com.elinkway.infinitemovies.utils;

import com.elinkway.infinitemovies.application.MoviesApplication;
import com.le123.ysdq.BuildConfig;

public class MoviesConstant {
	/**
	 * 云盘源走p2p下载控制开关
	 */
	public static final boolean isP2pDownload = true;
	public static boolean isRefreshMyFragment = false;
	public static boolean isFirstPlayVideo = true;
	public static boolean isFirstIn4GPlayVideo = true;
	public static boolean isIn4GPlayVideo = false;
	public static final String HOTEST="3";
	public static final String LASTEST="1";
	public static final String GOODPING="8";
	public static final boolean DEBUG = BuildConfig.DEBUG;
	public static final String PKNAME = BuildConfig.APPLICATION_ID;
	public static final int VERSIONCODE = BuildConfig.VERSION_CODE;
	public static final String SUBCHANNEL = Utils.getSubchannel(MoviesApplication.getInstance());
	public static final boolean ISLETVJIELIU = true;	//用于判断乐视源是否走截流播放和下载--写死的
	public static int letvPlayStatus = 2; 	//当前播放状态 0：305；1：SDK；2：截流；

	public static final String UUID = new UUIDFactory(MoviesApplication.getInstance()).getDeviceUuid().toString();
	public static final String EPISODE_UPDATE = "0";
	public static final String EPISODE_UPDATE_END = "1";
	public static final String TEST_PUSH_HOST = "http://proxy.le123.com/";
	public static final String PRODUCT_PUSH_HOST = "http://proxy.le123.com/";
	public static final int TOPIC_REQUEST_SIZE = 10;
	public static final int CHANNEL_DETAIL_LIST_REQUEST_SIZE = 18;
	public static final String VT_MOVIE = "2";
	public static final String VT_TV = "1";
	public static final String VT_CARTOON = "3";
	public static final String VT_ZONGYI = "4";
	public static final String VT_DOCUMENTARY = "16";
	public static final String VT_LIVE = "100";
	public static final String NAME_VT_MOVIE = "电影";
	public static final String NAME_VT_TV = "电视剧";
	public static final String NAME_VT_CARTOON = "动漫";
	public static final String NAME_VT_ZONGYI = "综艺";
	public static final String NAME_VT_RECORD = "纪录片";
	public static final String NAME_VT_LIVE = "直播";
	public static final int SEARCH_RESULT_REQUEST_SIZE = 10;
	public static final int TOPIC_DETAIL_REQUEST_SIZE = 18;
	public static final int PLAY_RECORD_MAXIMUM_SIZE = 300;
	public static final int FAVORITE_MAXIMUM_SIZE = 100;
	public static final int SEARCH_RECORD_MAXIMUM_SIZE = 15;
	public static final long RECOMMEND_FOCUS_TIMESPAN = 3500;
	public static final String SPREAD_SECRET = "video7~8!5g@9e#6today$7%0^3*le_123app";	
	
	public static final String PACKAGE_NAME =MoviesApplication.getInstance().getPackageName();
	public static final String YINGSHIDAQUAN = BuildConfig.APPLICATION_ID;
	public static final String KUANKAN ="com.elinkway.infinitemovies";
	public static final String SIGNATURE = Utils.getSignInfo();
	public static final int DETAIL_RELATION_NUM = 20;
	public static final String BRAND = Utils.getBrandName();
	public static final String SERIAL_NUMBER = Utils.getSerialNumber();
	public static final int LIVE_CHANNEL_PAGE_SIZE = 10;
	public static final String DOWNLOAD_PATH_SELECT = "download_path_size";
	public static final String DOWNLOAD_PATH = "download_path";
	public static final String DOWNLOAD_SHARPNESS_SELECT = "download_sharpness_select";
	public static final String PLAY_SHARPNESS_SELECT = "play_sharpness_select";
	public static final String[] SHARPNESS = new String[]{"流畅", "标清", "高清", "超清"};

	public static String NORMAL = "0";
	public static String HIGH = "1";
	public static String SUPER = "2";
	public static String SUPER2 = "3";
	public static String REAL = "4";

	//sdk 清晰度
	public static int SDK_NORMAL = 0;
	public static int SDK_HIGH = 1;
	public static int SDK_SUPER = 2;
	public static int SDK_SUPER2 = 3;
	public static int SDK_REAL = 4;


	// 用于播放下载流地址的相关上报  最新
	public static String SERVER_PLAY_RESULT_ERROR = "24"; //服务端截流播放请求失败
	public static String SERVER_DOWNLOAD_RESULT_ERROR = "25"; //服务端截流下载请求失败
	public static String SERVER_PLAY_NETS_ERROR = "26"; //客户端网络错误导致截流播放失败
	public static String SERVER_DOWNLOAD_NETS_ERROR = "27"; //客户端网络错误导致截流下载失败
	public static String JS_ERROR_SERVER_PLAY_FAIL = "28"; //客户端JS解析失败，服务端截流播放失败
	public static String JS_ERROR_SERVER_PLAY_SUCCESS = "29"; //客户端JS解析失败，服务端截流播放成功
	public static String JS_ERROR_SERVER_DOWNLOAD_FAIL = "30"; //客户端JS解析失败，服务端截流下载失败
	public static String JS_ERROR_SERVER_DOWNLOAD_SUCCESS = "31"; //客户端JS解析失败，服务端截流下载成功
	public static String JS_SUCCESS_URL_PLAY_ERROR = "32"; //客户端JS解析成功播放失败，未重试服务端流
	public static String JS_SUCCESS_URL_DOWNLOAD_ERROR = "33"; //客户端JS解析成功下载失败，未重试服务端流


	//用于播放下载流地址的相关上报
	public static String PLAY_SUCCESS_STATE = "4";
	public static String PLAY_FAIL_STATE = "5";
	public static String DOWNLOAD_SUCCESS_STATE = "9";
	public static String DOWNLOAD_FAIL_STATE = "10";
	public static String NOPALY_EXIT_STATE = "11";
	public static String NOPALY_AD_EXIT_STATE = "12";
	public static String GET_PLAYURL_FAIL_STATE = "15";
	public static String GET_DOWNLOADURL_FAIL_STATE = "16";
	public static String GET_PLAYURL_FAIL_503 = "17";
	public static String GET_DOWNLOADURL_FAIL_503 = "18";
	public static String GET_PLAYURL_FAIL_211 = "19";
	public static String GET_DOWNLOADURL_FAIL_211 = "20";
	public static String GET_PLAYURL_FAIL_212 = "21";
	public static String GET_DOWNLOADURL_FAIL_212 = "22";
	public static String RESPONSE_DATA_ERROR = "4444";
	public static String RESPONSE_NO_NET_ERROR = "4445";
	public static String SUCCESS_NO_DATA = "20050";
	public static String SUCCESS_NO_URL = "20051";
	public static String CLICK_IQIYI_PLAY_BTN = "23";

	public static String STATE_ACTION_PLAY = "0"; //播放
	public static String STATE_ACTION_DOWNLOAD = "1"; //下载

	public static final String GDT_APP_ID = IdUtils.AD_GDT_APP_ID;	//广点通广告的appid

	public static final String PRODUCT_YSDQ = "YSDQ";
	public static final String PRODUCT_CJSP = "CJSP";
	public static final String PRODUCT_KUAIKAN = "KUAIKAN";
	public static final String PRODUCT_LIGHTNING = "LIGHTNING";

	//模板样式
	public static final int MODEL_SPECIAL = 1;
	public static final int MODEL_HALF = 2;
	public static final int MODEL_THIRD = 3;
	public static final int MODEL_FEED = 4;
	public static final int MODEL_FULL = 9;
	public static final int MODEL_FOCUS = 10;
	public static final int MODEL_HEADER =11;
	public static final int MODEL_AD = 12;
	public static final int MODEL_INTERVAL = 13;
	public static final int ONEPOINT_VIDEO_BIG = 30;
	public static final int ONEPOINT_VIDEO_SMALL = 31;
	public static final int ONEPOINT_AD_ONEPIC = 32;
	public static final int ONEPOINT_AD_THREEPIC = 33;
	public static final int ONEPOINT_REFRESH_TIPS = 39;

	public static final String STYLE_SPECIAL = "1";
	public static final String STYLE_TWO = "2";
	public static final String STYLE_THREE = "3";
	public static final String STYLE_FEED = "4";
	public static final String STYLE_MIXTURE_TWO = "5";		//混合型2列
	public static final String STYLE_MIXTURE_THREE = "6";		//混合型3列

	public static final int NEED_REPORT_DATA = 10710;		//需要上报数据
	public static final int NEED_REQUEST_GDTAD = 10801;		//需要请求广点通广告

	public static final String ONEPOINT_TAG = "onepoint";
	public static final String ONEPOINT_SOURCE_TAG = "onepointSource";
	public static final String ONEPOINT_APPID = "ysPeqpYR55NAH-jmexgc7wl4";
	public static final String ONEPOINT_SEXRETKEY = "OFU4n9spW4ezHHeBxzcAA3R3C8RinJpY";

	public static final String TAGS_YIDIAN = "yidian";

	public static String getVtName(String vt){
		if("1".equals(vt)){
			return NAME_VT_TV;
		}
		else if("2".equals(vt)){
			return NAME_VT_MOVIE;
		}
		else if("3".equals(vt)){
			return NAME_VT_CARTOON;
		}
		else if("4".equals(vt)){
			return NAME_VT_ZONGYI;
		}else if(VT_LIVE.equals(vt)){
			return NAME_VT_LIVE;
		}
		return "";
		
	}
}
